﻿using System;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace FDEE.Model
{
    /// <summary>
    /// 盖梁基类
    /// </summary>
    public abstract class RampCrossbeamBase : MemberBase
    {
        public double Width,LeftWidth; // 总宽度，左侧总宽度
        public double Length; // 总宽度，左侧总宽度
        public int  Height; // 盖梁计算高度，总高度（非隐形盖梁时两者相等）
        public RebarTendonDistribute TendonDistribute; // 预应力顺桥向分布

        protected RampCrossbeamBase(string typeName, string pierNumber, 
            int height, double width,double leftwidth, int length):
            base(typeName,pierNumber)
        {
            Height = height;
            Width = width;
            Length = length;
            LeftWidth = leftwidth;
        }
        /// <summary>
        /// 混凝土强度设置
        /// </summary>
        public override void SetConcreteClass()
        {
            ConcreteClass = eConcreteClass.C45;
        }
        /// <summary>
        /// 预应力纵向布置
        /// </summary>
        public abstract void SetTendonList();

    }

    public abstract class RampBPTMBase : RampCrossbeamBase
    {
        public int Span;
        public TendonCollection TendonList;

        protected RampBPTMBase(string typeName, string pierNumber, 
            int height, double width,double leftwidth, int length,int span) :
            base(typeName, pierNumber, height, width,leftwidth, length)
        {
            Span = span;
            TendonList = new TendonCollection();
        }

        public override void SetConcreteVolume()
        {
            ConcreteVolumn = Width*0.001 * Length * 0.001 * Height * 0.001 ;
        }
    }

}
